<!--
 * @Author: your name
 * @Date: 2020-02-28 15:29:21
 * @LastEditTime: 2020-02-28 15:39:05
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \javascript_teaching\codes\chapter2\2-2.html
 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>定义变量和赋值使用示例</title>
    <script>
        // 声明3个变量，分别代表姓名、科目和成绩，要求打印出三个变量和值
        var xm,km,cj;
        xm = "朱婷婷";
        km = "javascript前端开发程序设计";
        cj = 96;
        console.log("18级电商4班" + xm + "的" + km + "成绩是" + cj + "，" + "这是最好的成绩了！！！");
        document.write("18级电商4班" + xm + "的" + km + "成绩是" + cj + "，" + "这是最好的成绩了！！！");
    </script>
</head>
<body>
    
</body>
</html>